package com.lzl.decorator.v2;


import java.util.List;

/**
 * 真正的装饰器
 * VIP 导航栏
 */
public class VIPNavBarDecorator extends AbstractNavBarDecorator {
    public VIPNavBarDecorator(INavBar bar) {
        super(bar);
    }

    @Override
    public List<NavItem> getNavItems() {
        List<NavItem> navItems = super.getNavItems();
        navItems.add(new NavItem("作业"));
        navItems.add(new NavItem("题库"));
        return navItems;
    }
}
